RedEmpresasForms = function(){
	var itemsInMediosBusqueda = [];
	return {
		seccionControlEmpresas: function(){
			return {
				xtype: "form",
				id: "formRegistroEmpresas",
     			bodyPadding: "5 5 5 5",
     			frame: true,
     			layout: {
	        		type: "table",
					columns: 2,
					tableAttrs: {
			            style: {width: "450px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 440, labelAlign: "rigth"}),
	        	items:[
			       {
     	        	  xtype: "numberfield",
    	        	  name: "redEmpresaFolio",
    	        	  fieldLabel: "No de Folio",
    	        	  labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	        	  readOnly: true,
    	        	  colspan: 2,
    	        	  labelWidth: 160,
    	        	  columWidth: 440,
    	        	  width: 250
			       },{
			    	   xtype: "datefield",
			    	   name: "redEmpresaFechaRegistro",
			    	   id: "redEmpresaFechaRegistro",
			    	   fieldLabel: "Fecha Registro",
			    	   labelStyle: Asg.constants.LABEL_STYLE_TEXT,
			    	   readOnly: true,
			    	   width: 250,
			    	   colspan: 2,
			    	   columWidth: 440,
			    	   labelWidth: 160,
			    	   value: new Date(),
			    	   submitFormat: "Ymd"
			       },{
			    	    xtype: "combobox",
						id: "ctgOficina",
						name: "ctgOficina.ctgOficinaId",
						fieldLabel: "Oficina",
						colspan: 2,
						width: 440,
						columWidth: 440,
						labelWidth: 160,
						afterLabelTextTpl: Asg.constants.REQUIRED,
						labelStyle: Asg.constants.LABEL_STYLE_TEXT,
						allowBlank:false,
						store: new Ext.data.SimpleStore({
							data: Asg.Combo.getAllCtgOficinas(),
							fields: [{name: "ctgOficinaId"},{name: "ctgOficinaNombre"}]
						}),
						valueField: "ctgOficinaId",
						displayField: "ctgOficinaNombre"
			       },{
						xtype: "combobox",
						name: "sgdUsuario.sgdUsuarioId",
						id: "sgdUsuario",
						fieldLabel: "Gestor(a) de Empleo",
						colspan: 2,
						width: 440,
						columnWidth: 440,
						labelWidth: 160,	
						afterLabelTextTpl:  Asg.constants.REQUIRED,
						labelStyle: Asg.constants.LABEL_STYLE_TEXT,
						allowBlank:false,
						store: new Ext.data.SimpleStore({
							data: Asg.Combo.getAllSgdUsuarios(),
							fields: [{name: "sgdUsuarioId"},{name: "sgdUsuarioNombre"}]
						}),
						valueField: "sgdUsuarioId",
						displayField: "sgdUsuarioNombre"
    	   		 	},{
    	   		 		xtype: "textfield",
    	   		 		name: "redEmpresaNit",
    	   		 		id: "redEmpresaNit",
	   		 			labelWidth: 160,
    	   		 		fieldLabel: "N\u00FAmero de Nit",
    	   		 		afterLabelTextTpl:  Asg.constants.REQUIRED,
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		allowBlank: false,
    	   		 		columWidth: 440,
    	   		 		colspan:2,
    	   		 		vtype: "nit",
    	   		 		width: 350
    	   		 	}, {
    	   		 		xtype: "textfield",
    	   		 		name: "redEmpresaRegistro",
    	   		 		id: "redEmpresaRegistro",
    	   		 		labelWidth: 160,
    	   		 		fieldLabel: "N\u00FAmero de Registro",
    	   		 		afterLabelTextTpl:  Asg.constants.REQUIRED,
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		allowBlank: false,
    	   		 		columWidth: 440,
    	   		 		colspan:2,
    	   		 		width: 250
    	   		 	}
		       ]
			};
		},
		seccionDatosEmpresa: function(){
			return {
				xtype: "form",
				id: "formDatosEmpresa",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			},
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "650px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 640}),
	        	items: [{
	        		xtype: "fieldset",
	        		title: "DATOS DE LA EMPRESA",
	        		layout: "anchor",
	        		colspan: 2,
	        		defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
                		xtype: "textfield",
    	   		 		name: "redEmpresaRazonSocial",
    	   		 		id: "redEmpresaRazonSocial",
    	   		 		fieldLabel: "Razon Social",
    	   		 		labelWidth: 175,
    	   		 		afterLabelTextTpl:  Asg.constants.REQUIRED,
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		allowBlank: false,
    	   		 		width: 420
	                },{
                		xtype: "textfield",
    	   		 		name: "redEmpresaNombreComercial",
    	   		 		id: "redEmpresaNombreComercial",
    	   		 		fieldLabel: "Nombre Comercial",
    	   		 		afterLabelTextTpl:  Asg.constants.REQUIRED,
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		allowBlank: false,
    	   		 		labelWidth: 175,
    	   		 		width: 250
	                },{
                    	xtype: "radiogroup",
                    	width: 375,
                    	anchor: "none",
                    	id: "redEmpresaPersoneria",
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	labelWidth: 175,
                    	fieldLabel: "Personeria",
                    	defaults: {
                    		autoFlex: false
                    	},
                    	items:[{
                    		inputValue: "1",
                    		name: "redEmpresaPersoneria",
                    		boxLabel: "Juridica",
                    		checked: true
                    	},{
                    		inputValue: "2",
                    		name: "redEmpresaPersoneria",
                    		margins: "0 0 0 7",
                    		boxLabel: "Natural"
                    	}]
	                },{
                    	xtype: "radiogroup",
                    	width: 375,
                    	anchor: "none",
                    	id: "redEmpresaOrigen",
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	labelWidth: 175,
                    	fieldLabel: "Origen de la Empresa",
                    	defaults: {
                    		autoFlex: false
                    	},
                    	items:[{
                    		inputValue: "1",
                    		name: "redEmpresaOrigen",
                    		boxLabel: "Nacional",
                    		checked: true
                    	},{
                    		inputValue: "2",
                    		name: "redEmpresaOrigen",
                    		margins: "0 0 0 7",
                    		boxLabel: "Extranjera"
                    	}]
	                },{
	                	xtype:"textfield",
	                	name: "redEmpresaNumeroPatronal",
    	   		 		id: "redEmpresaNumeroPatronal",
    	   		 		fieldLabel: "Numero Patronal",
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		labelWidth: 175,
    	   		 		width: 100
	                },{
	                	xtype: "fieldcontainer",
	                	fieldLabel: "Empleados de la Empresa",
	                	labelWidth: 175,
	                	afterLabelTextTpl:  Asg.constants.REQUIRED,
	                	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    layout: "hbox",
	                    combineErrors: true,
	                    defaultType: "numberfield",
	                    items: [{
	                    	width: 130,
	                    	labelWidth: 60,
	                    	minValue: 0,
	                    	margins: "0 0 0 3",
	                    	fieldLabel: "Total",
	                    	name: "redEmpresaTotalEmpleados",
	                    	id: "redEmpresaTotalEmpleados"
	                    }, {
	                    	width: 120,
	                    	labelWidth: 60,
	                    	fieldLabel: "Hombres",
	                        name: "redEmpresaTotalHombres",
	                        id: "redEmpresaTotalHombres",
	                        margins: "0 0 0 3",
	                        minValue: 0
	                    }, {
	                    	width: 140,
	                    	labelWidth: 80,
	                    	fieldLabel: "Mujeres",
	                    	name: "redEmpresaTotalMujeres",
	                    	id: "redEmpresaTotalMujeres",
	                        margins: "0 0 0 3",
	                        minValue: 0
	                    }]
	                },{
	                	xtype: "fieldcontainer",
	                	fieldLabel: " ",
	                    layout: "hbox",
	                    labelSeparator: "",
	                    labelWidth: 175,
	                    combineErrors: true,
	                    defaultType: "numberfield",
	                    items: [{
	                    	width: 130,
	                    	labelWidth: 60,
	                    	minValue: 0,
	                    	margins: "0 0 0 3",
	                    	fieldLabel: "Adulto",
	                    	name: "redEmpresaAdultoMayores",
	                    	id: "redEmpresaAdultoMayores"
	                    }, {
	                    	width: 120,
	                    	labelWidth: 60,
	                    	fieldLabel: "Menores",
	                        name: "redEmpresaMenoresEdad",
	                        id: "redEmpresaMenoresEdad",
	                        margins: "0 0 0 3",
	                        minValue: 0
	                    }, {
	                    	width: 140,
	                    	labelWidth: 80,
	                    	fieldLabel: "Discapacitados",
	                    	name: "redEmpresaDiscapacitados",
	                    	id: "redEmpresaDiscapacitados",
	                        margins: "0 0 0 3",
	                        minValue: 0
	                    }]
	                },{
                    	xtype: "textarea",
                    	fieldLabel: "Direcci\u00F3n Actual",
                    	name: "redEmpresaDireccion",
                    	id: "redEmpresaDireccion",
                    	labelWidth: 175,
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                        flex: 1,
                        allowBlank: false
	                },{
                    	xtype: "radiogroup",
                    	width: 375,
                    	anchor: "none",
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	labelWidth: 175,
                    	id: "redEmpresaZona",
                    	fieldLabel: "Zona",
                    	defaults: {
                    		autoFlex: false
                    	},
                    	items:[{
                    		inputValue: "1",
                    		name: "redEmpresaZona",
                    		boxLabel: "Urbana",
                    		checked: true
                    	},{
                    		inputValue: "2",
                    		name: "redEmpresaZona",
                    		boxLabel: "Rural"
                    	}]
                    },{
	                	xtype: "fieldcontainer",
	                	fieldLabel: "Tel\u00E9nos",
	                    layout: "table",
	                    columns: 2,
	                    labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    labelWidth: 175,
	                    combineErrors: true,
	                    defaultType: "numberfield",
	                    items: [{
	                    	xtype: "textfield",
	    	   		 		name: "redEmpresaTelefono1",
	    	   		 		id: "redEmpresaTelefono1",
	    	   		 		width: 100
	                    },{
	                    	xtype: "textfield",
	                    	margins: "0 0 0 10",
	    	   		 		name: "redEmpresaTelefono2",
	    	   		 		id: "redEmpresaTelefono2",
	    	   		 		width: 100
	                    },{
	                		xtype: "textfield",
	    	   		 		name: "redEmpresaFax",
	    	   		 		id: "redEmpresaFax",
	    	   		 		fieldLabel: "Fax",
	    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	    	   		 		width: 200
		                }]
                    },{
                		xtype: "textfield",
    	   		 		name: "redEmpresaEmail",
    	   		 		id: "redEmpresaEmail",
    	   		 		fieldLabel: "E-mail de la Empresa",
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		labelWidth: 175,
    	   		 		width: 100
	                }]
	        	}]
			};
		},
		seccionMediosBusquedaEmpresa: function(){
			itemsInMediosBusqueda = [];
			var storeMediosBusqueda = new Ext.data.SimpleStore({
				data: Asg.Combo.getAllCtgMediosBusqueda() ,
				fields: [{name:"ctgCatalogoId"}, {name:"ctgCatalogoNombre"}]
			});
			storeMediosBusqueda.each(function(record){
				itemsInMediosBusqueda.push({
					boxLabel: record.data.ctgCatalogoNombre,
					name: "ctgMedioBusqueda",
					inputValue: record.data.ctgCatalogoId
				});
			});
			return {
				xtype: "form",
				id: "formMediosBusquedaEmpresa",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			},
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "650px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 640}),
	        	items: [{
	        		xtype: "fieldset",
	        		title: "MEDIOS DE BUSQUEDA",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
	                	xtype:"checkboxgroup",
                		fieldLabel: "Documentos de Identidad",
                		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                		labelWidth: 200,
                		flex: 1,
                		columns: 1,
                		id: "ctgMedioBusquedaId",
                		cls: 'x-check-group-alt',
        	            vertical: true,
        	        	defaults: {
        	        		style: "margin-right:15px"
        	        	},
                		items: itemsInMediosBusqueda
	                }]
	        	}]
			};
		},
		seccionSucursalesEmpresa: function(){
			Ext.define("redSucursalesModel",{
				extend: "Ext.data.Model",
				fields:[
			        "redEmpresaSucursalId",
			        "redEmpresaSucursalNombre",
			        "redEmpresaSucursalDireccion",
			        "ctgMunicipioId",
			        "ctgMunicipioNombre",
			        "redEmpresaSucursalTelefono",
			        "redEmpresaSucursaFax",
			        "redEmpresaSucursalEmail",
			        "redEmpresaSucursalCentral",
			        "redEmpresaFolio"
		        ]
			});
			var storeSucursales = Ext.create("Ext.data.Store", {
				autoLoad: true,
				model: "redFormacionAcademicaModel",
				proxy: {
			        type: "ajax",
			        url: Asg.constants.CONTEXT_PATH + "/sucursalesEmpresas/findSucursalesEmpresa",
			        reader: {
			        	type: "array",
			        	root: "list"
	        		}
			    }
			});
			return {
				xtype: "form",
				id: "formSucursalesEmpresas",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			},
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "650px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 640}),
	        	items: [{
	        		xtype: "fieldset",
	        		title: "MANEJO DE SUCURSALES",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
	                	xtype: "textfield",
	                	fieldLabel: "Nombre",
                    	name: "redEmpresaSucursalNombre",
                    	labelWidth: 175,
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                        allowBlank: false,
                        width: 450
	                },{
        	        	xtype: 'combo',
        	            store: new Ext.data.SimpleStore({
        					data: [],
        					fields: ["id", "value"]
        				}),
        	            displayField: 'value',
        	            typeAhead: false,
        	            flex:1,
        	            allowBlank: false,
        	            valueField: "id",
        	            afterLabelTextTpl:  Asg.constants.REQUIRED,
        	            id: "ctgMunicipio",
        	            name: "ctgMunicipio.ctgMunicipio",
        	            labelWidth: 175,
        	            fieldLabel: "Departamento / Municipio",
        	            labelStyle: Asg.constants.LABEL_STYLE_TEXT,
        	            hideTrigger:true,
        	            listConfig: {
        	                loadingText: 'Buscando...',
        	                emptyText: 'No matching posts found.',
        	                // Custom rendering template for each item
        	                getInnerTpl: function() {
        	                    return '<b>DEPARTAMENTO / MUNICIPIO:</b><br> {id} - {value}';
        	                }
        	            },
        	            pageSize: 10
	                },{
                    	xtype: "textarea",
                    	fieldLabel: "Direcci\u00F3n",
                    	name: "redEmpresaSucursalDireccion",
                    	labelWidth: 175,
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                        flex: 1,
                        allowBlank: false
	                },{
                    	xtype: "radiogroup",
                    	width: 375,
                    	anchor: "none",
                    	afterLabelTextTpl:  Asg.constants.REQUIRED,
                    	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
                    	labelWidth: 175,
                    	id: "redEmpresaSucursalCentral",
                    	fieldLabel: "Es Oficina Central?",
                    	defaults: {
                    		autoFlex: false
                    	},
                    	items:[{
                    		inputValue: "1",
                    		name: "redEmpresaSucursalCentral",
                    		boxLabel: "SI"
                    	},{
                    		inputValue: "0",
                    		name: "redEmpresaSucursalCentral",
                    		boxLabel: "NO",
                    		checked: true
                    	}]
                    },{
	                	xtype: "fieldcontainer",
	                	fieldLabel: "Tel\u00E9nos",
	                    layout: "table",
	                    columns: 2,
	                    labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    afterLabelTextTpl:  Asg.constants.REQUIRED,
	                    labelWidth: 175,
	                    combineErrors: true,
	                    defaultType: "numberfield",
	                    items: [{
	                    	xtype: "textfield",
	    	   		 		name: "redEmpresaSucursalTelefono",
	    	   		 		id: "redEmpresaSucursalTelefono",
	    	   		 		allowBlank: false,
	    	   		 		width: 100
	                    },{
	                    	xtype: "textfield",
	                    	margins: "0 0 0 10",
	                    	fieldLabel: "Fax",
	                    	labelWidth: 60,
	    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	    	   		 		width: 160,
	    	   		 		id: "redEmpresaSucursaFax",
    	   		 			name: "redEmpresaSucursaFax"
	                    }]
                    },{
                		xtype: "textfield",
    	   		 		name: "redEmpresaSucursalEmail",
    	   		 		id: "redEmpresaSucursalEmail",
    	   		 		fieldLabel: "E-mail",
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		labelWidth: 175
	                }]
	        	},{
	        		xtype: "fieldset",
	        		title: "SUCURSALES",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items: [{
	                	xtype: "grid",
            			id: "gridSucursalesEmpresas",
            			margins: "5 5 5 5",
            			flex: 1,
            			store: storeSucursales,
    					columns: [
					          {text: "Municipio",dataIndex: "ctgMunicipioNombre", width: 150},
					          {text: "Nombre",dataIndex: "redEmpresaSucursalNombre", width: 150},
					          {text: "Direcci\u00F3n",dataIndex: "redEmpresaSucursalDireccion",flex:1}
			          	],
			          	tbar: [
		        	       {text: "Agregar", iconCls: Asg.constants.SAVE_ICON}
	        	        ]
	                }]
	        	}]
			};
		},
		seccionContactosEmpresa: function(){
			Ext.define("redContactosModel",{
				extend: "Ext.data.Model",
				fields:[
			        "redEmpresaContactoId",
			        "redEmpresaFolio",
			        "redEmpresaContactoNombre",
			        "redEmpresaContactoApellidos",
			        "redEmpresaContactoPuesto",
			        "redEmpresaContactoTelefono",
			        "redEmpresaContactoCelular",
			        "redEmpresaContactoEmail",
			        "redEmpresaSucursalId",
			        "redEmpresaSucursalNombre"
		        ]
			});
			var storeContactos = Ext.create("Ext.data.Store", {
				autoLoad: true,
				model: "redContactosModel",
				proxy: {
			        type: "ajax",
			        url: Asg.constants.CONTEXT_PATH + "/contactosEmpresa/findContactosEmpresa",
			        reader: {
			        	type: "array",
			        	root: "list"
	        		}
			    }
			});
			return {
				xtype: "form",
				id: "formContactosEmpresas",
				bodyPadding: "5 5 5 5",
     			frame: true,
     			autoScroll:true,
     			fieldDefaults:{
     				msgTarget: 'qtip'
     			},
     			layout: {
	        		type: "table",
	        		columns: 2,
					tableAttrs: {
			            style: {width: "650px"},
			            align: "center"
					}
	        	},
	        	defaults: Asg.Form.defaults({width: 640}),
	        	items: [{
	        		xtype: "fieldset",
	        		title: "MANEJO DE CONTACTOS",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
	                	xtype: "fieldcontainer",
	                	fieldLabel: "Nombre Completo",
	                	labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                	labelWidth: 175,
	                    layout: "hbox",
	                    combineErrors: true,
	                    afterLabelTextTpl:  Asg.constants.REQUIRED,
	                    defaultType: "textfield",
	                    defaults: {
	                        hideLabel: "true"
	                    },
	                    items: [{
	                        name: "redEmpresaContactoNombre",
	                        flex: 2,
	                        emptyText: "Nombres",
	                        allowBlank: false
	                    }, {
	                        name: "redEmpresaContactoApellidos",
	                        flex: 3,
	                        margins: "0 0 0 6", 
	                        emptyText: "Apellidos",
	                        allowBlank: false
	                    }]
	                },{
                		xtype: "textfield",
    	   		 		name: "redEmpresaContactoPuesto",
    	   		 		id: "redEmpresaContactoPuesto",
    	   		 		allowBlank: false,
    	   		 		fieldLabel: "Puesto",
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		afterLabelTextTpl:  Asg.constants.REQUIRED,
    	   		 		labelWidth: 175
	                },{
	                	xtype: "fieldcontainer",
	                	fieldLabel: "Tel\u00E9nos",
	                    layout: "table",
	                    columns: 2,
	                    labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	                    afterLabelTextTpl:  Asg.constants.REQUIRED,
	                    labelWidth: 175,
	                    combineErrors: true,
	                    defaultType: "numberfield",
	                    items: [{
	                    	xtype: "textfield",
	    	   		 		name: "redEmpresaContactoTelefono",
	    	   		 		id: "redEmpresaContactoTelefono",
	    	   		 		allowBlank: false,
	    	   		 		width: 100
	                    },{
	                    	xtype: "textfield",
	                    	margins: "0 0 0 10",
	                    	fieldLabel: "Celular",
	                    	labelWidth: 60,
	    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
	    	   		 		width: 160,
	    	   		 		id: "redEmpresaContactoCelular",
	    	   		 		name: "redEmpresaContactoCelular"
	                    }]
                    },{
                		xtype: "textfield",
    	   		 		name: "redEmpresaContactoEmail",
    	   		 		id: "redEmpresaContactoEmail",
    	   		 		fieldLabel: "E-mail",
    	   		 		labelStyle: Asg.constants.LABEL_STYLE_TEXT,
    	   		 		labelWidth: 175
	                }]
                },{
	        		xtype: "fieldset",
	        		title: "CONTACTOS",
	        		layout: "anchor",
	        		colspan: 2,
	                defaults: {
	                    anchor: "100%",
	                    align: "center"
	                },
	                items:[{
	                	xtype: "grid",
            			id: "gridContactosEmpresas",
            			margins: "5 5 5 5",
            			flex: 1,
            			store: storeContactos,
    					columns: [
					          {text: "Nombre",dataIndex: "redEmpresaContactoNombre", flex:1},
					          {text: "Puesto",dataIndex: "redEmpresaContactoPuesto", width: 150},
					          {text: "Sucursal",dataIndex: "redEmpresaSucursalNombre",width: 150}
			          	],
			          	tbar: [
		        	       {text: "Agregar", iconCls: Asg.constants.SAVE_ICON}
	        	        ]
	                }]
	        	}]
			};
		}
	};
}();